<include file="public:header" />
<include file="public:left" />

<form method="post" action="{$action}" enctype="multipart/form-data">
    <input type="hidden" name="id" <if condition="isset($data['refund_id'])">value="{$data.refund_id}"</if> />
    <section>
        <h2><strong>退款详情</strong><a class="fr" href="{:url('order/refund')}">返回退款列表</a></h2>

        <ul class="ulColumn2">

            <li>
                <span class="item_name" style="width:120px;">订单单号：</span>
                <a href="{:url('order/det',array('id' => $data['order_id']))}">{$data['order_sn']}</a>
            </li>
            <li>
                <span class="item_name" style="width:120px;">退货商品：</span>
                <if condition="!empty($data['goods'])">
                <foreach name="data.goods" item="g">
                    <gt name="$key" value="0">
                        <br>
                        <span class="item_name" style="width:120px;"></span>
                    </gt>
                     <a href="{:url('goods/add_goods',array('id' => $g['product_id']))}">{$g.product_name}</a>&nbsp{$g.spec}&nbsp x{$g.count}&nbsp下单价格：{$g.product_price}元
                </foreach>
                </if>
            </li>
            <li>
                <span class="item_name" style="width:120px;">退款单号：</span>
                {$data['refund_sn']}
            </li>
            <li>
                <span class="item_name" style="width:120px;">退款理由：</span>
                {$data.reason}
            </li>
            <li>
                <span class="item_name" style="width:120px;">退款说明：</span>
                {$data.des}
            </li>
            <li>
                <span class="item_name" style="width:120px;">退款金额：</span>
                {$data.money}元
            </li>
            <li>
                <span class="item_name" style="width:120px;">确认收货信息：</span>
                <if condition="!empty($data['address'])">
                {$data.address.name}&nbsp&nbsp{$data.address.mobile}&nbsp&nbsp
                {$data.address.province}-{$data.address.city}-{$data.address.country}&nbsp&nbsp
                {$data.address.detail}
                </if>
            </li>
            <li>
                <span class="item_name" style="width:120px;">状态：</span>
                <switch name="data.status">
                <case value="-1">不同意</case>
                <case value="0">待审核</case>
                <case value="1">同意</case>
                <case value="2">已确认退款</case>
                <case value="3">已退款</case>
                </switch>
            </li>
            <if condition="$data['status'] eq 0">
            <li>
                <span class="item_name" style="width:120px;">操作：</span>
                <input type="radio" name="status" value="1" checked>同意退款
                <input type="radio" name="status" value="-1">不同意退款
            </li>
            </if>
            <if condition="$data['status'] eq 1">
                <li>
                    <span class="item_name" style="width:120px;">操作：</span>
                    <input type="radio" name="status" value="2" checked>确认退款
                    <span style="color: red">（确认已回收商品，退款金额直接打回对方使用的支付方式，请确保微信商家账户有足够的余额再提交确认）</span>
                </li>
            </if>
            <li>
                <span class="item_name" style="width:120px;">是否开发票：</span>
                <input type="radio" name="is_invoice" value="-1" <if condition="$data['is_invoice'] eq -1">checked</if>>否
                <input type="radio" name="is_invoice" value="1" <if condition="$data['is_invoice'] eq 1 or $data['is_invoice'] eq 0">checked</if>>是
            </li>
            <li>
                <if condition="$action eq '' && $admin_account eq 'admin'">
                    <span class="item_name" style="width:120px;"></span>
                    <input type="submit" class="link_btn" value="提交" /> <if condition='!empty($admin_refund)'><span style="color: red">管理员审核状态：同意退款 （操作人：{$admin_name}）</span><else /><span style="color: red">管理员审核状态：管理员未审核</span></if>
                    <else />
                    <if condition="empty($admin_refund)">
                    <span class="item_name" style="width:120px;"></span>
                    <input type="submit" class="link_btn" value="提交" />
                    <else/>
                    <span class="item_name" style="width:120px;">订单退款状态：</span>
                    <span style="color: red">同意退款 （操作人：{$admin_name}）</span>
                    </if>
                </if>
            </li>
        </ul>
    </section>
</form>

</div>
</section>
</body>

</html>